//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.comprosoft.telnet.command;

import com.comprosoft.telnet.io.IOHandler;

public class CustomProcess {
    Process process;
    IOHandler ioHandler;

    public CustomProcess(Process process, IOHandler ioHandler) {
        this.process = process;
        this.ioHandler = ioHandler;
    }

    public void destory() {
        try {
            this.ioHandler.destroy();
            this.process.getInputStream().close();
            this.process.getErrorStream().close();
            this.process.getOutputStream().close();
            this.process.exitValue();
            this.process.destroyForcibly();
        } catch (Exception var2) {
            var2.printStackTrace();
        }

    }
}
